package org.ccams.dao;

import org.ccams.domain.TIndetail;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class TIndetailDAO extends SqlMapClientDaoSupport{

    
    public TIndetailDAO() {
        super();
    }

    
    public void insert(TIndetail record) {
        getSqlMapClientTemplate().insert("t_indetail.abatorgenerated_insert", record);
    }

   
    public int updateByPrimaryKey(TIndetail record) {
        int rows = getSqlMapClientTemplate().update("t_indetail.abatorgenerated_updateByPrimaryKey", record);
        return rows;
    }

    
    public int updateByPrimaryKeySelective(TIndetail record) {
        int rows = getSqlMapClientTemplate().update("t_indetail.abatorgenerated_updateByPrimaryKeySelective", record);
        return rows;
    }

    
    public TIndetail selectByPrimaryKey(Long id) {
        TIndetail key = new TIndetail();
        key.setId(id);
        TIndetail record = (TIndetail) getSqlMapClientTemplate().queryForObject("t_indetail.abatorgenerated_selectByPrimaryKey", key);
        return record;
    }

    
    public int deleteByPrimaryKey(Long id) {
        TIndetail key = new TIndetail();
        key.setId(id);
        int rows = getSqlMapClientTemplate().delete("t_indetail.abatorgenerated_deleteByPrimaryKey", key);
        return rows;
    }
}